package com.qianfeng.service;

import com.qianfeng.pojo.SysDevice;

import java.util.List;

/*
 *@Description:
 *@author:刘哥
 *@Date:86180 2022/9/8 20:10
 */
public interface DeviceService {
    List<SysDevice> findByCId(Long cId);

    void addDevice(SysDevice device);

    SysDevice findByDeviceId(String deviceId);

    void deleteByDeviceId(String deviceId);

    void updateDevice(SysDevice device);

    List<SysDevice> findBySceneId(Long sceneId);

    List<SysDevice>  findAll();

    void sendCommand(String deviceId, String command);

    int updateDeviceStatus(String deviceId, int status);
}
